<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">添加权限</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal">
        {{ csrf_field() }}
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="name">权限名</label>
                <div class="col-sm-10">
                    <input type="text" name="name" class="form-control" placeholder="权限名" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="display_name">显示名称</label>
                <div class="col-sm-10">
                    <input type="text" name="display_name" class="form-control" placeholder="显示名称" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="description">描述</label>
                <div class="col-sm-10">
                    <input type="text" name="description" class="form-control" placeholder="描述" />
                </div>
            </div>
        </div>
        @if($errors->any())
            <ul class="list-group">
                @foreach($errors->all() as $error)
                    <li class="list-group-item list-group-item-danger">{{ $error }}</li>
                @endforeach
            </ul>
        @endif
        <div class="box-footer">
            <button type="button" class="btn btn-primary" data-url="{{ url('admin/permissions') }}" data-type="POST" onclick="subAction(this)">提 交</button>
        </div>
    </form>
</div>